package com.yungu.swift.assets.driver.enums;

/**
 * @author : cuixiuyin
 * @date : 2019/6/17
 */
public enum DriverErrorEnum {

    /**
     * 司机错误码枚举
     */
    DRIVER_ON_WORK(6001, "已经是出车状态"),
    DRIVER_NOT_FIND(6002, "未找到司机 - 1001"),
    FACE_RECOGNITION_DRIVER_ERROR(6003, "司机实名信息不全"),
    FACE_RECOGNITION_NOT_OPEN(6004, "未开启人脸识别"),
    FACE_RECOGNITION_TOKEN_EXCEPTION(6005, "获取人脸识别token异常"),
    FACE_RECOGNITION_NO_CERTIFICATION(6006, "认证未超时 无须重复认证"),
    STATUS_INVALID(6006, "司机状态异常"),
    ;


    private Integer code;
    private String msg;

    DriverErrorEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public Integer getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
